
package com.kweative.model.query;

import com.kweative.model.column.Column;
import com.kweative.model.query.WhereStatement.Order;

/**
 *
 * @author henrik
 */
class OrderPhrase<T> {
    private Column col;
    private Order order;

    public OrderPhrase(Column col, Order order) {
        this.col = col;
        this.order = order;
    }

    @Override
    public String toString() {
        return QueryUtil.formatColumn(col) + " " + ((order == Order.ASCENDING) ? "ASC" : "DESC");
    }

}
